import { useLottie } from "lottie-react";
import worryFox from "../../assets/lottie/worry-fox.json";
import styles from "./index.module.less";

const NoData = () => {
  const options = {
    animationData: worryFox,
    loop: true,
    autoplay: true,
  };
  const { View } = useLottie(options, { height: 300 });
  return (
    <div className={styles.container}>
      {View}
      <span>暂无数据...</span>
    </div>
  );
};

export default NoData;
